from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession

from app.database.models import BotSettings


async def get_bot_settings(session: AsyncSession) -> BotSettings:

    q = select(BotSettings)

    res = await session.execute(q)

    return res.scalar()
